package edu.univercidade.tcc.server.model;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class Priority {

	@NotNull
	@Column(name = "is_default")
	private Boolean isDefault;

	@NotNull
	@Size(max = 30)
	private String name;

	@NotNull
	@Column(name = "enumeration_position", unique = true)
	private Integer priorityPosition;

	@Override
	public String toString() {
		return name;
	}

}
